package cn.fzkj.common.constant;

/**
 * @DESCRIPTION 采购相关枚举
 */
public class WareConstant {
    /**
     * 采购单状态枚举
     */
    public enum PurchaseStatus {

        CREATED(0, "新建"),
        ASSIGNED(1, "已分配"),
        RECEIVE(2, "已领取"),
        FINISH(3, "已结束"),
        HAVEERROR(4, "状态存在异常");

        private int status;
        private String msg;
        PurchaseStatus(int status, String msg){
            this.status = status;
            this.msg = msg;
        }
        public int getStatus(){
            return this.status;
        }
    }

    /**
     * 采购状态枚举
     */
    public enum PurchaseDetailStatus {

        CREATED(0, "新建"),
        ASSIGNED(1, "已分配"),
        PURCHASING(2, "正在采购"),
        FINISH(3, "已完成"),
        HAVEERROR(4, "采购存在异常");

        private int status;
        private String msg;
        PurchaseDetailStatus(int status, String msg){
            this.status = status;
            this.msg = msg;
        }
        public int getStatus(){
            return this.status;
        }
    }
}
